<!DOCTYPE html>
<html lang="en" class="app">
<head>
  <meta charset="utf-8" />
  <title>微信账号修改</title>
  <meta name="description" content="app, web app, responsive, admin dashboard, admin, flat, flat ui, ui kit, off screen nav" />
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
  <link rel="stylesheet" href="${s.base}/js/layui/css/layui.css" media="all" />
  <link rel="stylesheet" href="${s.base}/css/base/base.css" media="all" />
</head>

<body class="childrenBody">
<form class="layui-form" style="width:80%;">
  <input type="hidden" id="id" name="id" value="${dbShare.id}" />
  <div class="layui-form-item layui-row layui-col-xs12">
    <label class="layui-form-label">分享标题</label>
    <div class="layui-input-block">
      <input type="text" class="layui-input shareTitle" id="shareTitle" name="shareTitle" value="${dbShare.shareTitle}" placeholder="请输入分享标题" lay-verify="required"/>
    </div>
  </div>
  <div class="layui-form-item layui-row layui-col-xs12">
    <label class="layui-form-label">分享描述</label>
    <div class="layui-input-block">
      <textarea class="layui-textarea shareDesc" id="shareDesc" name="shareDesc">${dbShare.shareDesc}</textarea>
    </div>
  </div>
  <div class="layui-form-item layui-row layui-col-xs12">
    <label class="layui-form-label">分享图片</label>
    <div class="layui-input-block">
      <div class="famous-upload-pic">
        <img  src="${dbShare.sharePic}" class="upload-avatar" id="upload-avatar"/>
        <input type="file" name="myfiles" class="upload" id="myFile" onchange="ajaxFileUploads('myFile','sharePic','upload-avatar')">
        <input type="hidden" class="sharePic" id="sharePic"  value="${dbShare.sharePic}" />
      </div>
    </div>
  </div>

  <div class="layui-form-item layui-row layui-col-xs12" style="display: none;">
    <label class="layui-form-label">分享有礼描述</label>
    <div class="layui-input-block">
      <div id="contentEditor">
        ${dbShare.content}
      </div>
    </div>
  </div>



  <div class="layui-form-item layui-row layui-col-xs12">
    <div class="layui-input-block">
      <button class="layui-btn layui-btn-sm" lay-submit="" lay-filter="btnSubmit">确定</button>
      <button type="reset" class="layui-btn layui-btn-sm layui-btn-primary closeLay">取消</button>
    </div>
  </div>
</form>
<script type="text/javascript" src="${s.base}/js/layui/layui.js"></script>
<script type="text/javascript" src="${s.base}/js/base/wx/dbShareUpdateOrSave.js"></script>
<script type="text/javascript" src="${s.base}/js/wangEditor/wangEditor.js"></script>
<script type="text/javascript" src="${s.base}/js/base/jquery-3.2.0.min.js"></script>
<script type="text/javascript" src="${s.base}/js/base/ajaxfileupload.js"></script>
<script>
    var E = window.wangEditor;
    var contentEditor = new E('#contentEditor');
    contentEditor.customConfig.uploadFileName = 'myfiles';
    contentEditor.customConfig.uploadImgServer = '/file/fileUploadEditor';
    contentEditor.create();

</script>
</body>
</html>
